package com.zerosoft.boilerpanel;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class MainApplication extends Application {
    @Override
    public void start(Stage stage) throws Exception {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
        Parent root = fxmlLoader.load();

        HelloController controller = fxmlLoader.getController();
//        controller.getLed().setImageUrl("https://www.zerosoft.com/wp-content/uploads/2023/02/logo-zerosoft-white.png");
//        controller.getLed().setLabelText("Hello");

        Scene scene = new Scene(root, 800, 600);
        stage.setTitle("Hello!");
        stage.getIcons().add(new Image("boiler.png"));
        stage.setScene(scene);
        stage.show();

    }
}
